﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DELVE_GAME.ViewStructure.GameActions
{
    class CloseColorChoicesGameAction : GameAction
    {
        View view;
        int playerIndex;
        int colorIndex;

        public CloseColorChoicesGameAction(View targetView, int pIndex, int crIndex)
        {
            view = targetView;
            playerIndex = pIndex;
            colorIndex = crIndex;

        }
        
        public override void doAction()
        {
            view.selectColor(playerIndex, colorIndex);
        }
    }
}
